import request from '@/utils/myrequest'

// 初始化列表
export function getList(kvs) {
  return request({
    url: '/mtms/ToolingProduct/GetList',
    method: 'get',
    kvs
  })
}

export function getInfo(kvs) {
  return request({
    url: '/mtms/ToolingProduct/Get',
    method: 'get',
    kvs
  })
}

export function doAdd(kvs) {
  return request({
    url: '/mtms/ToolingProduct/Add',
    method: 'POST',
    kvs
  })
}

export function doUpdate(kvs) {
  return request({
    url: '/mtms/ToolingProduct/Update',
    method: 'POST',
    kvs
  })
}

export function doDelete(kvs) {
  return request({
    url: '/mtms/ToolingProduct/Delete',
    method: 'POST',
    kvs
  })
}
// 备件型号列表
export function getIdAndToolingModelList(kvs) {
  return request({
    url: '/mtms/ToolingModels/GetIdAndToolingModelList',
    method: 'get',
    kvs
  })
}

// 备件型号列表
export function getProductList(kvs) {
  return request({
    url: '/mtms/ToolingProduct/GetProductList',
    method: 'get',
    kvs
  })
}
